package com.mapKeyVal.key;

public class PalletKey {
	private String mdl_cate_fk;
	private String mdl_id_fk;
	private String dn_no;
	private String cus_info_fst;
	private String cus_info_snd;
	private String pallet_id;

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((mdl_cate_fk == null) ? 0 : mdl_cate_fk.hashCode());
		result = prime * result + ((mdl_id_fk == null) ? 0 : mdl_id_fk.hashCode());
		result = prime * result + ((dn_no == null) ? 0 : dn_no.hashCode());
		result = prime * result + ((cus_info_fst == null) ? 0 : cus_info_fst.hashCode());
		result = prime * result + ((cus_info_snd == null) ? 0 : cus_info_snd.hashCode());
		result = prime * result + ((pallet_id == null) ? 0 : pallet_id.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		PalletKey other = (PalletKey) obj;
		if (mdl_cate_fk == null) {
			if (other.mdl_cate_fk != null)
				return false;
		} else if (mdl_id_fk == null) {
			if (other.mdl_id_fk != null)
				return false;
		} else if (!mdl_id_fk.equals(other.mdl_id_fk))
			return false;
		if (dn_no == null) {
			if (other.dn_no != null)
				return false;
		} else if (!dn_no.equals(other.dn_no))
			return false;
		if (cus_info_fst == null) {
			if (other.cus_info_fst != null)
				return false;
		} else if (!cus_info_fst.equals(other.cus_info_fst))
			return false;
		if (cus_info_snd == null) {
			if (other.cus_info_snd != null)
				return false;
		} else if (!cus_info_snd.equals(other.cus_info_snd))
			return false;
		if (pallet_id == null) {
			if (other.pallet_id != null)
				return false;
		} else if (!pallet_id.equals(other.pallet_id))
			return false;
		return true;
	}

	public PalletKey(String mdl_cate_fk, String mdl_id_fk, String dn_no, String cus_info_fst, String cus_info_snd, String pallet_id) {
		super();
		this.mdl_cate_fk = mdl_cate_fk;
		this.mdl_id_fk = mdl_id_fk;
		this.dn_no = dn_no;
		this.cus_info_fst = cus_info_fst;
		this.cus_info_snd = cus_info_snd;
		this.pallet_id = pallet_id;
	}

	public String getMdl_cate_fk() {
		return mdl_cate_fk;
	}

	public void setMdl_cate_fk(String mdlCateFk) {
		mdl_cate_fk = mdlCateFk;
	}

	public String getMdl_id_fk() {
		return mdl_id_fk;
	}

	public void setMdl_id_fk(String mdl_id_fk) {
		this.mdl_id_fk = mdl_id_fk;
	}

	public String getDn_no() {
		return dn_no;
	}

	public void setDn_no(String dn_no) {
		this.dn_no = dn_no;
	}

	public String getCus_info_fst() {
		return cus_info_fst;
	}

	public void setCus_info_fst(String cus_info_fst) {
		this.cus_info_fst = cus_info_fst;
	}

	public String getCus_info_snd() {
		return cus_info_snd;
	}

	public void setCus_info_snd(String cus_info_snd) {
		this.cus_info_snd = cus_info_snd;
	}

	public String getPallet_id() {
		return pallet_id;
	}

	public void setPallet_id(String pallet_id) {
		this.pallet_id = pallet_id;
	}
}
